import java.util.Scanner;

/**
 * Created by hml on 17-3-25.
 */
public class Gocompany {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int [] tX = new int[n];
        int [] tY = new int[n];
        for(int i = 0; i < n;i++){
            tX[i] = sc.nextInt();
        }
        for(int i = 0; i < n;i++){
            tY[i] = sc.nextInt();
        }
        int gx = sc.nextInt();
        int gy = sc.nextInt();
        int walkTime = sc.nextInt();
        int taxiTime = sc.nextInt();
        int consume = Integer.MAX_VALUE;
        int cost1 = 0;
        int cost2 = (Math.abs(gx) + Math.abs(gy))*walkTime;
        for (int i = 0; i < n; i++){
            cost1 = (Math.abs(tX[i]) + Math.abs(tY[i])) * walkTime +
                    (Math.abs(gx - tX[i]) +Math.abs(gy - tY[i])) * taxiTime;
            cost2 = Math.min(cost1,cost2);
            consume = Math.min(Math.min(cost1,cost2),consume);
        }
        System.out.print(consume);
    }
}
